package com.gdou.teaching.mapper;


import com.gdou.teaching.dataobject.ExperimentAnswer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author bo
 * @date Created in 16:49 2019/10/14
 * @description
 **/
@Mapper
@Repository
public interface ExperimentAnswerMapper {
    /**
     * 添加实验答案记录
     * @param experimentAnswer
     * @return
     */
    int addExperimentAnswer(ExperimentAnswer experimentAnswer);

    /**
     * 根据实验答案Id删除课程详情记录
     * @param ExperimentAnswerId
     * @return
     */
    boolean deleteExperimentAnswerByExperimentAnswerId(Integer ExperimentAnswerId);

    /**
     * 更新实验答案记录
     * @param experimentAnswer
     * @return
     */
    boolean updateExperimentAnswer(ExperimentAnswer experimentAnswer);

    /**
     * 根据实验答案Id查询实验答案记录
     * @param ExperimentAnswerId
     * @return
     */
    ExperimentAnswer selectExperimentAnswerByExperimentAnswerId(Integer ExperimentAnswerId);

    /**
     * 根据实验Id查询实验答案记录
     * @param ExperimentId
     * @return
     */
    ExperimentAnswer selectExperimentAnswerByExperimentId(Integer ExperimentId);

}
